import { setupCounter } from "aileen-ts";
export function handleClick(event: Event, myShadowRoot: ShadowRoot) {
  console.log("handleClick");
  // 强制类型转换为 HTMLElement
  const target = event.target as HTMLElement;

  // 判断是否为按钮元素
  if (target.tagName === "BUTTON") {
      console.log("点击的是按钮");
      setupCounter(target);
    // 执行按钮相关的逻辑
  } else if (target.tagName === "A") {
    console.log("点击的是链接");
  } else {
    console.log("点击的不是按钮");
  }
}
